[#-- 创建分类商品的自定义宏，参数：par_datalist 商品列表，par_goodstype 分类类型。--]
[#macro ecs_goodsbox par_goodslist par_goodstype]
<div class="box">
	<div class="box_2 centerPadd">
		<div class="itemTit ${par_goodstype}" id="item${par_goodstype}">
			<h2>
				<a href="javascript:void(0)" onclick="change_tab_style('item${par_goodstype}', 'h2', this);">全部商品</a>
			</h2>
		</div>
		<div id="show_${par_goodstype}_area" class="clearfix goodsBox">
			[#list par_goodslist.data as glst] [#-- 商品列表 --]
			<div class="goodsItem">
				<span class="${par_goodstype}"></span>
				<a href="${var_contextpath}/goods.xhtml?group=${glst.bgiGroup}&id=${glst.bgiId}">
				[#-- 读取商品图片的自定义标签，参数：par_goodsid 商品ID。--]
				[@ecs_goodsimg par_goodsid = glst.bgiId]
					<img class="goodsimg" alt="${glst.bgiName}" src='${(var_virtualpath+var_productpath+var_goodsimginfo.bgpMiddle)!"${path}/images/no_picture.gif"}'>
				[/@ecs_goodsimg]
				</a>
				<br />
				<p>
					<a href="${var_contextpath}/goods.xhtml?group=${glst.bgiGroup}&id=${glst.bgiId}" title="${glst.bgiName}">${glst.bgiName}</a>
				</p>
				<font class="f1">￥${glst.bgiPrice}元</font>
			</div>
			[/#list]
			<div class="more">
				<a href="${var_contextpath}/search.xhtml?type=${par_goodstype}"><img src="${path}/images/more.gif" /> </a>
			</div>
		</div>
	</div>
</div>	
[/#macro]
				